package com.junzhiit.nengji.cms.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.junzhiit.nengji.cms.rabbitmq.RabbitMQService;

@RestController
@RequestMapping("/test")
public class TestController extends BaseController {

	@Autowired
	private RabbitMQService rabbitMQService;
	
	@RequestMapping(value = "/test", method = RequestMethod.GET)
	public void test() {
//		for (int i = 0; i < 10; i++) {
//			String id = UUID.randomUUID().toString().replaceAll("-", "");
//			Map<String, Object> map = new HashMap<>();
//			map.put("id", id);
//			map.put("ps", 26);
//			map.put("areaId", "e9f8d6fb0328487ab3a8a03fd2db25a0");
//			map.put("payAmount", 100);
//			map.put("shopOrderNumber", id);
//			map.put("shopId", "008db40385bb4c469247ad755cc3919e");
//			map.put("shopName", "乐鸽生态链");
//			String content = JSONUtil.toJsonStr(map);
//			rabbitMQService.sendToStoreBusiness(id, content);
//		}
	}
}
